package com.softa.web.controller.system;

import com.softa.dao.model.SysFile;
import com.softa.service.system.SysFileService;
import com.softa.vo.QueryRequest;
import com.softa.web.controller.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by yangl on 2017/8/9.
 */
@Controller
@RequestMapping("/file")
public class FileController extends BaseController {

    @Autowired
    private SysFileService sysFileService;

    @RequestMapping(value="/list",method = RequestMethod.POST)
    @ResponseBody
    public List<SysFile> list(QueryRequest queryRequest) {
        return sysFileService.selectByCondition(queryRequest);
    }
}
